<style type="text/css">
    .huibg
    {
        background-color: #eee;
    }
    .tooltip_style
    {
        float: left;
    }
</style>

<div class="knowledgebase_xinjian_body">
        <div class="knowledgebase_xinjian_bj">
        </div>
        <div class="knowledgewjwthf">
            <div class="knowledgewjwthfbody">
                <div class="knowledgewjwthftitle">
                    问题回复
                    <div class="close" ng-click="isHideFun()">
                        <span>+</span></div>
                </div>
                <div class="knowledgewjwthfmain">
                    <div class="knowledgewjwthfmain_wenti">
                        <div class="knowledgewjwthfmain_wentitop">
                            <div class="knowledgewjwthfmain_header">
                                <div class="knowledgewjwthfmain_header_title">
                                    <svg class="icon" aria-hidden="true"><use xlink:href="#icon-question"></use></svg>
                                    问题：<span ng-bind-html="item.title |  to_html"></span>
                                    <h5 ng-bind-html="item.content |  to_html"></h5>
                                    </div>
                                <div  ng-repeat="file in item.spare track by $index" title="附件：{{file.name}}">
                                        <a href="{{file.path}}" target="_blank" ng-if="file.type!='mp3'">
                                            <img ng-src="/images/fileicon/{{file.type}}_56.png" onerror="javascript:this.src='/images/fileicon/qita_56.png'"/>
                                            <br/>
                                            {{file.name}}
                                        </a>
                                        <audio ng-src="{{file.path|trustAsResourceUrl}}" controls="controls" ng-if="file.type=='mp3'">
                                                您的浏览器不支持播放该语音
                                            </audio>
                                    </div>
                                <ul class="knowledgewjwthfmain_header_xqjs">
                                    <li>
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shijian3"></use></svg>
                                        {{item.createDate}}</li>
                                    <li>
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-huida01"></use></svg>
                                        {{item.replyNum}}回答</li>
                                    <li class="knowledgewjwthfmain_header_xqjs_name">
                                        <img ng-src="{{item.questionerAvatar}}" src="/images/avatar.png" onerror="javascript:this.src='/images/avatar.png'" /><span>{{item.questionerName}}</span></li>
                                </ul>
                            </div>
                            <ul class="knowledgewjwthfmain_section">
                                <!--循环回答---------开始--------------->
                                <li class="knowledgewjwthfmain_sectionli" ng-repeat="attr in replayList">
                                    <div class="knowledgewjwthfmain_sectionli_tx" ng-bind-html="attr.areplayContent | to_html" ng-show="!attr.showEdit">
                                    </div>
                                    <div  ng-show="attr.showEdit">
                                        <textarea set-focus class="knowledgewjwthfmain_sectionli_tx" style="border: 1px solid #ccc;"
                                            ng-model="attr.areplayContent"></textarea>
                                    </div>
                                    <div class="knowledgewjwthfmain_sectionli_tx" ng-show="!attr.showEdit" ng-if="attr.spare.length>0">
                                        <div  ng-repeat="file in attr.spare track by $index" title="附件：{{file.name}}">
                                            <a href="{{file.path}}" target="_blank" ng-if="file.type!='mp3'">
                                                <img ng-src="/images/fileicon/{{file.type}}_56.png" onerror="javascript:this.src='/images/fileicon/qita_56.png'"/>
                                                <br/>
                                                {{file.name}}
                                            </a>
                                            <audio ng-src="{{file.path|trustAsResourceUrl}}" controls="controls" ng-if="file.type=='mp3'">
                                                您的浏览器不支持播放该语音
                                            </audio>
                                        </div>
                                    </div>
                                    <div class="knowledgewjwthfmain_sectionli_xq" >
                                        <div class="knowledgewjwthfmain_sectionli_name">
                                            <img ng-src="{{attr.replyAvatar}}" src="/images/avatar.png" onerror="javascript:this.src='/images/avatar.png'" /><div
                                                ng-if="attr.replyUserId==params.userid">
                                                <span>我</span>（{{attr.replyUserName}}）</div>
                                            <div ng-if="attr.replyUserId!=params.userid">
                                                {{attr.replyUserName}}</div>
                                        </div>
                                        <div class="knowledgewjwthfmain_sectionli_time">
                                            <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shijianaini"></use></svg>
                                            {{attr.replyTime}}</div>
                                        <div>
                                            <!--------------------------------------------------------------------------------------------------->
                                            <div class="knowledgewjwthfmain_section_xiugaibody">
                                                <div class="knowledgewjwthfmain_section_caina">
                                                    <span ng-show="attr.isSolve" style="color: #CCC;">
                                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-zuijiahuida"></use></svg>
                                                        已采纳</span> 
                                                    <span ng-show="!attr.isSolve"  ng-click="setManyi(attr)" >
                                                            <svg class="icon" aria-hidden="true"><use xlink:href="#icon-zuijiahuida"></use></svg>
                                                            采纳</span>
                                                    <span  ng-show="attr.showEdit" ng-show="saverReplay(attr)">
                                                            <svg class="icon" aria-hidden="true"><use xlink:href="#icon-msnui-save"></use></svg>
                                                            保存</span>
                                                     </div>

                                                <div class="knowledgewjwthfmain_section_shanchu" ng-if="item.questionerId==params.userid "
                                                    ng-click="delReplay(attr)">
                                                    <svg class="icon" aria- hidden="true"><use xlink:href="#icon-ttpodicon"></use></svg>
                                                    删除</div>
                                               <!-- <div class="knowledgewjwthfmain_section_shanchu"  ng-show="!attr.showEdit"
                                                    ng-click="attr.showEdit=true;">
                                                    <svg class="icon" aria- hidden="true"><use xlink:href="#icon-pinglun"></use></svg>
                                                    回复</div>-->
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                            <div ng-if="numCount>replayList.length" ng-click="loadMore()" style="margin: 10px auto;border: 1px #ddd solid;padding: 5px 10px;text-align: center;color: #39f;margin: 20px 0;">加载更多（{{replayList.length}}/{{numCount}}）</div>
                        </div>

                        <div class="newlyaddedfooter" style="width: 560px;">
                         <!--不能修改-->
                                    <div>
                                        <textarea set-focus class="knowledgewjwthfmain_sectionli_tx" style="border: 1px solid #ccc; height:100px;"
                                            ng-model="replayContent"></textarea>
                                    </div>
                            <form class="newlyaddedfooterform">
                             <button class="btn quxiao" ng-click="addFile()">
                                {{fileObj.name!=undefined&&fileObj.name.length>0?('AlreadyAdded'|T):('AddAttachments'|T)}}</button>
                            <button class="btn queding" ng-click="addReplay()">
                                确定</button>
                           
                            </form>
                        </div>
                        <input type="file" nv-file-select="" uploader="uploader"  style="display:none;" id="FJUpload">
                    </div>
                </div>
            </div>
        </div>
    </div>
